package com.hardydou.data.service;

import com.hardydou.data.model.Film;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author ：hardy
 * @description：视频资源服务
 * @date ：Created in 2020/7/15
 * @Copyright ：Hardydou.com
 */
public interface IFilmService {


    @Transactional
    void add(Film film);

    @Transactional
    void deleteById(Long resId);

    @Transactional
    void update(Film film);

    @Transactional
    void updateWithBob(Film film);

    Film findById(Long resId);

    String findInfoById(Long resId);

    List<Film> list(Map params);

    List<Film> findByType(String fileType, int count);

    List<Film> findLatest(int count);

    List<Film> findHots(int count);

}
